/*
 * server_closet_controller.cpp
 *
 * Created: 10/7/2012 10:51:59 PM
 *  Author: i3luefire
 */ 


#include <avr/io.h>

int main(void)
{
    while(1)
    {
       switch (key)
       {
	       case "off":
	       shutdown()
	       break;
		   case "low":
		   conserve()
		   break;
	       default:
	       /* Your code here */
	       break;
       } 
    }
}

void powerup(void)
{
	// power up devices in this order
}

void readtemp(void)
{
	// read the temperature from a sensor
}

void fanspeed(void)
{
	// set fan speed
}

void alarm(void)
{
	// set off a visual and audio alarm
}

void shutdown(void)
{
	// calm shut down
}

void conserve(void)
{
	// shut off non essentials... fans, extra network switches, remote
}